Skip to content

Release Vale 3.29.0 - #731

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
vendor/vale/upgrade
Closed

github-actions[bot] wants to merge 1 commit into
mainfrom
vendor/vale/upgrade

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

The @taskless/vale-* packages are published ahead of what
@taskless/cli pins.

This moves every @taskless/vale-* pin from 3.27.0-20261117230017 to
3.29.0-20261202070856 — Vale 3.29.0 — and regenerates
pnpm-lock.yaml. The pins move together on purpose: the platform
packages are selected by optional dependency, so a straggler left at
the old version is a different Vale on one platform than on the others,
and the grammar package must match the binaries that read it.

It also moves VALE_VERSION in capabilities.ts to
3.29.0 and regenerates src/generated/vale-vocabulary.ts
from the new binary, and the workflow ran
engine-version-consistency against the result before pushing. What
this does not carry is judgment: if the contract suites below
report a failure, Vale 3.29.0 changed a measured behaviour,
and that edit, the update ledger, any migration, and the release
note's prose belong in a child pull request. So does a row for each
format reader listed below.

This is the half that reaches a user. Republishing the platform
packages changes nobody's install, because the CLI pins each one
exactly; merging this is what ships the new Vale.

This pull request rolls: if another set is published before it merges,
the branch, title, and body are rewritten to the newer version rather
than a second pull request being opened. Push a commit to the branch
and that stops — the workflow will not force-push over a commit it did
not write.

Measured against Vale 3.29.0

Compared with 3.27.0, which is what main pins. Validate on a pull request this workflow opens waits for a maintainer to approve it, so this section is the check that ran.

Contract suites

7 of 278 failed. The new Vale changed a recorded behaviour. The measured edit, the update ledger, and any migration belong in a child pull request that merges down into this branch.

vale-vendor-contract.test.ts > Vale engine capabilities reads .tex as plaintext, lint-through-syntax and all
  AssertionError: .tex skipped its own syntax — it is parsed, and belongs in a markup or comment tier: expected [] to have a length of 1 but got +0
vale-vendor-contract.test.ts > Vale engine capabilities fails the whole run on .adoc, needing asciidoctor
  AssertionError: .adoc no longer fails: expected +0 not to be +0 // Object.is equality
vale-vendor-contract.test.ts > Vale engine capabilities fails the whole run on .asc, needing asciidoctor
  AssertionError: .asc no longer fails: expected +0 not to be +0 // Object.is equality
vale-vendor-contract.test.ts > Vale engine capabilities fails the whole run on .asciidoc, needing asciidoctor
  AssertionError: .asciidoc no longer fails: expected +0 not to be +0 // Object.is equality
vale-vendor-contract.test.ts > Vale engine capabilities fails the whole run on .typ, needing typst2vast
  AssertionError: .typ no longer fails: expected +0 not to be +0 // Object.is equality
vale-vendor-contract.test.ts > Vale engine capabilities fails the whole run on .rest, needing rst2html
  AssertionError: .rest no longer fails: expected +0 not to be +0 // Object.is equality
vale-vendor-contract.test.ts > Vale engine capabilities fails the whole run on .rst, needing rst2html
  AssertionError: .rst no longer fails: expected +0 not to be +0 // Object.is equality

Format readers upstream added

  • internal/lint/adoc_convert.go
  • internal/lint/convert_stub.go
  • internal/lint/latex.go
  • internal/lint/markdoc.go
  • internal/lint/memo.go
  • internal/lint/rst_convert.go
  • internal/lint/typst/stub.go
  • internal/lint/typst/typst.go

Each can route an extension that VALE_FORMAT_TIERS in capabilities.ts has no row for, and an unlisted extension is never probed. Find where internal/core/format.go sends it, probe the extension against the new binary, and add a row. A reader that needs an external converter is the dangerous case: the missing row becomes a crash that aborts every Vale rule in the run. A file whose first line is //go:build js belongs to the WebAssembly build only, and the CLI never reaches it. (diff)

Extension routing (internal/core/format.go)

Changed. An extension added to FormatByExtension is a format Vale learned, even when no reader file was added. Probe each one against the new binary and add a row to VALE_FORMAT_TIERS.

@@ -3,10 +3,12 @@ package core
 import (
 	"path/filepath"
 	"regexp"
+	"slices"
 	"sort"
 	"strings"
 
 	"github.com/vale-cli/vale/v3/internal/glob"
+	"github.com/vale-cli/vale/v3/internal/system"
 )
 
 // TestFileSuffixes name the YAML that holds a rule's test cases rather than a
@@ -29,6 +31,27 @@ func IsTestFile(name string) bool {
 	return false
 }
 
+// RuleExtensions are the extensions a rule file may have, in order of
+// preference: a rule written as both `Rule.yml` and `Rule.yaml` is read from
+// `Rule.yml`. See #1217.
+var RuleExtensions = []string{".yml", ".yaml"}
+
+// HasRuleExt reports whether a file name ends in one of RuleExtensions.
+func HasRuleExt(name string) bool {
+	return slices.Contains(RuleExtensions, filepath.Ext(name))
+}
+
+// FindRuleFile returns the file that defines the rule at stem -- its path
+// without an extension -- trying each of RuleExtensions in turn.
+func FindRuleFile(fsys system.FS, stem string) (string, bool) {
+	for _, ext := range RuleExtensions {
+		if path := stem + ext; fsys.Exists(path) {
+			return path, true
+		}
+	}
+	return "", false
+}
+
 // CommentsByNormedExt determines what parts of a file we should lint -- e.g.,
 // we only want to lint ; comments in a Clojure file.
 //
@@ -139,6 +162,7 @@ var FormatByExtension = map[string][]string{
 	`\.(?:lua)$`:                             {".lua", "code"},
 	`\.(?:md|mdown|markdown|markdn|[Rr]md)$`: {".md", "markup"},
 	`\.(?:mdx)$`:                             {".mdx", "markup"},
+	`\.(?:mdoc|markdoc)$`:                    {".mdoc", "markup"},
 	`\.(?:myst)$`:                            {".myst", "markup"},
 	`\.(?:qdoc|qdocinc)$`:                    {".qdoc", "markup"},
 	`\.(?:qmd)$`:                             {".qmd", "markup"},
@@ -155,6 +179,7 @@ var FormatByExtension = map[string][]string{
 	`\.(?:sass|scss|less)$`: {".c", "code"},
 	`\.(?:scala|sbt)$`:      {".c", "code"},
 	`\.(?:swift)$`:          {".c", "code"},
+	`\.(?:tex|ltx|latex)$`:  {".tex", "markup"},
 	`\.(?:ts|tsx|mts|cts)$`: {".ts", "code"},
 	`\.(?:typ)$`:            {".typ", "markup"},
 	`\.(?:txt)$`:            {".txt", "text"},

Upstream release notes — 3.29.0

https://github.com/vale-cli/vale/releases/tag/v3.29.0

  • LaTeX. Vale now lints .tex files. It reads the source without running TeX, so a document that doesn't compile still lints. Math, citations, references, and verbatim text are treated as code; sections, captions, footnotes, list items, and table cells are prose.
  • Typst, built in. typst2vast is now embedded, so Typst files need nothing else installed.
  • IgnoredPaths. A new .vale.ini key for paths that are never linted, even when named on the command line.
  • Pinned packages. A package can be pinned to its archive's digest.
  • .yaml rules. Rules load from .yaml files as well as .yml (#1232, thanks @seragAhmed).

A Markdown page, a Go file, and a YAML file sketched as bars, with the prose lit, the code and markup dark, and one alert in each at its exact position.

Spell checking is a parsing problem

Vale reads the format before it checks the spelling, so in fifteen markup formats, six programming languages, and three data formats, its output is the misspellings in your prose and nothing else. What that gets you, how fast it is, and how to bring a technical vocabulary along.

Changelog

  • 74aa23a8 feat: Add IgnoredPaths
  • 68c67051 ci: Link a release's blog post
  • 6388481b fix: Read math shorthands and place rewritten words in LaTeX
  • f2dbb55a chore: Accept 'Kato' in the vocabulary
  • 7d3f82a0 chore: Embed typst2vast v0.2.0
  • 33e310d7 docs: Credit the author in the README
  • c99e68eb chore: Drop typst2vast from the image
  • 99ccbb22 feat: Read Typst with an embedded typst2vast
  • 7a948db5 feat: Lint LaTeX
  • 159a4a83 feat: Pin a package to its archive's digest
  • 4579d16d fix: Load a grammar once when files of its language are linted at once
  • 3f9b7383 fix: Compare a wrapped phrase as one line against its swap
  • 1f9bf383 chore: Bump prose to v3.3.3
  • 237289e4 fix: Anchor the list-number pattern so a version isn't one
  • 74987670 fix: Skip character classes when finding a substitution key's lookarounds
  • d02e8204 fix: Fill in a substitution's capture groups when its key has a lookbehind
  • f5624b9e fix: Anchor a doc() selection without claiming its text is contiguous
  • 6d048b18 fix: Place a doc() match in its element, not at an earlier copy
  • d5eaeab7 fix: Read Rust block comments, and a Python module docstring after comments
  • 4967fc21 fix: Match a large vocabulary, and load it and dictionaries faster
  • d84e96d2 fix: Match a large vocabulary instead of failing on it
  • 5b368766 chore: Name both rule paths when a parent is missing
  • c96964f4 test: Skip the View order test without views
  • 40507c48 feat: load rules from .yaml files as well as .yml (#1232)
  • 8eb84cd8 fix: Pick a file's View by section order, the later one winning
  • 4a6c9a58 chore: Update prose to v3.3.2 (#1234)
  • c198c5de chore: Update regexp2 to v2.5.7
  • 6142ce3f perf: Derive a pattern's prefilter on first use
  • 5d484ac7 perf: Split a rule's tokens when one is anchored
  • ba32aaf2 fix: A raw-text tag in prose no longer swallows the rest of the document
  • d4e80232 perf: Anchor sequences on their rarest token, and filter on lookarounds
  • 9cbdd4df perf: One memo lookup per block, and remember sequence rules
  • 56ccf62e build: Add vale_nodict to leave out the default dictionary
  • a2843f6a ci: Leave e2e out of the minimal-tags test run
  • fbab1cca fix: Stop IgnoredClasses growing with every HTML file
  • 313d1a82 fix: sync a package whose archive root differs from its name
  • 1ea3e6b7 chore: buld wasm
  • 2b9161a4 perf: Find a rule's literals in one pass
  • 4b67a3f5 test: Expect write-good 0.5.0 messages
  • bab1513b perf: Smaller wasm build and faster rule matching
  • 02e3ca8e build: Strip and pack the grammar modules

@github-actions github-actions Bot added automated Opened and maintained by a workflow, not a person. Read the PR body for what to do with it. vale-upgrade Vale pin bump from vale-upgrade.yml. A rolling PR: each release rewrites it. labels Nov 30, 2026
@github-actions github-actions Bot changed the title Release Vale 3.28.1 Release Vale 3.29.0 Dec 2, 2026
@github-actions
github-actions Bot force-pushed the vendor/vale/upgrade branch from 0d72a9a to 550b6c8 Compare December 2, 2026 07:30
@aibex-agent

aibex-agent Bot commented Dec 2, 2026

Copy link
Copy Markdown

Landed laterally in #737, which carries this bump commit plus the fixes Vale 3.29.0 needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated Opened and maintained by a workflow, not a person. Read the PR body for what to do with it. vale-upgrade Vale pin bump from vale-upgrade.yml. A rolling PR: each release rewrites it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants